package com.hszl.blog.controller;

import com.hszl.blog.service.LoginService;
import com.hszl.blog.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author: 胡爽
 * @date: 2022/5/23 17:09
 **/
@RestController
@RequestMapping("logout")
public class LogOutController {
    @Autowired
    private LoginService loginService;

    @RequestMapping
    Result logout(@RequestHeader("Authorization") String token){
        return loginService.logout(token);
    }
}
